package dongbai.soft.feignclient;

import dongbai.soft.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Map;

@FeignClient("dispatch-server")
public interface DispatchClient {
    @RequestMapping("/delivery")
    public R deliverGood(@RequestBody Map<String, String> delivery);

    @RequestMapping("/setstatus")
    public R setStatus(@RequestBody Map<String, Object> smap);
}
